import { defineConfig } from "vite";
import uni from "@dcloudio/vite-plugin-uni";

// https://vitejs.dev/config/
export default defineConfig({
  server: {
    host: '0.0.0.0',
    port: 5173,
    proxy: {
      '/sjzsj-rights-api': 'https://assessment-dev.limefamily.cn:8090',
      '/sjzsj/api': 'https://assessment-dev.limefamily.cn:8090',
    }
  },
  plugins: [uni()],
  build: {
		minify: 'terser',
		terserOptions: {
			compress: {
				drop_console: true,
			},
		},
	},
});
